<?php

namespace App\Http\Controllers\Api;

use App\Model\Page;
use App\Services\PageService;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;

class PageController extends Controller
{
    public function listPages()
    {
        $pageSrv = new PageService();
        $cates = $pageSrv->getCates(Page::ROOT_PAGE);
        //跨域调用标识
        $callback = Input::get('callback');
        return self::apiSucc($cates,$callback);
    }
}
